using UnityEngine;

public class camerafollow : MonoBehaviour
{
	public GameObject Joueur;

	public float xpos;

	public float ypos;

	public float delay;

	private void Start()
	{
	}

	private void FixedUpdate()
	{
		xpos = (Joueur.transform.position.x - base.transform.position.x + delay) * 3f;
		ypos = (Joueur.transform.position.y - base.transform.position.y) * 3f;
		base.transform.Translate(Vector2.right * xpos * Time.deltaTime);
		base.transform.Translate(Vector2.up * ypos * Time.deltaTime);
	}
}
